#!/usr/bin/python3
# -*- coding: UTF-8 -*-
import requests


class TestHttp:
    def __init__(self):

        def testData(self):
            # 接口的url
            url = "http://www.smallxzm.top:8888/tyb/live/selectImportantMessage"

            # 接口的参数
            params = {
                "from": "en",
                "to": "zh",
                "query": "test"
            }

            r = requests.request("get", url)

            # 打印返回结果
            print(r.text)
